import { BaseEntity } from "src/common/base.entity";
import { Survey } from "src/modules/survey/entities/survey.entity";
import { Column, Entity, ManyToOne } from "typeorm";

@Entity({ name: 'result', comment: '结果表' })
export class Result extends BaseEntity {

    @Column({ type: 'varchar', length: 255, comment: '关键字' })
    keyword: string;

    @Column({ type: 'varchar', length: 255, comment: '详细信息' })
    details: string;

    
    @ManyToOne(() => Survey, survey => survey.results)
    survey: Survey;
}
